﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x804 上介绍了“空白页”项模板

namespace UWPSdy.App1
{
	/// <summary>
	/// 可用于自身或导航至 Frame 内部的空白页。
	/// </summary>
	public sealed partial class MainPage : Page
	{
		public MainPage()
		{
			this.InitializeComponent();
		}

		//private async void Button_Click(object sender, RoutedEventArgs e)
		//{
			

		//	//系统语音朗读
		//	MediaElement mediaElement = new MediaElement();
		//	var synth = new Windows.Media.SpeechSynthesis.SpeechSynthesizer();
		//	Windows.Media.SpeechSynthesis.SpeechSynthesisStream stream = await synth.SynthesizeTextToStreamAsync("Hello world");
		//	mediaElement.SetSource(stream, stream.ContentType);
		//	mediaElement.Play();

		//	//弹框
		//	await new MessageDialog("Hello world 朗读完成").ShowAsync();
		//}
	}
}
